package com.getpebble.android.util;

import android.bluetooth.BluetoothAdapter;
import com.getpebble.android.common.core.trace.Trace;

public class BluetoothUtil {
    private static final String TAG = BluetoothUtil.class.getSimpleName();

    public static boolean isBluetoothEnabled() {
        BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
        if (bluetoothAdapter != null) {
            return bluetoothAdapter.isEnabled();
        }
        Trace.error(TAG, "Bluetooth adapter not present");
        return false;
    }
}
